<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="Step 7: Performing Backup">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="TPOPS_GaussDB_00010.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect Appliance 1.5.0-1.6.0 Help Center">
  <meta name="DC.Publisher" content="20241029">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="TPOPS_GaussDB_00019">
  <meta name="DC.Language" content="en-us">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>Step 7: Performing Backup</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="TPOPS_GaussDB_00019"></a><a name="TPOPS_GaussDB_00019"></a>
  <h1 class="topictitle1">Step 7: Performing Backup</h1>
  <div>
   <p>Before performing backup, you need to associate the resources to be protected with a specified SLA. The system protects the resources and periodically executes backup jobs based on the SLA. You can perform a backup job immediately through manual backup.</p>
   <div class="section">
    <h4 class="sectiontitle">Prerequisites</h4>
    <ul>
     <li>Before initiating backup, ensure that the database is in the normal state.</li>
     <li>If the agent host has been replaced before the backup is initiated, scan for resources again. For details about how to scan for resources, see <a href="TPOPS_GaussDB_00061.html">Managing GaussDB Projects</a>.</li>
     <li>Before initiating backup, ensure that backUpAgent has been started on the agent host. For details about how to start backUpAgent, see "Starting backUpAgent" in the <em>ProtectAgent Installation Guide</em>.</li>
     <li>Before initiating backup, ensure that the XBSA backup whitelist has been enabled on TPOPS. For details about how to enable the whitelist, see <a href="TPOPS_GaussDB_00013.html">Step 2: Enabling the XBSA Backup Whitelist on the TPOPS Node</a>.</li>
     <li>When a full backup is performed for a newly created instance for the first time, ensure that no backup job is being executed on the instance. Log in to the TPOPS management page and choose <strong>Task Center</strong> &gt; <strong>Task Details</strong> to view task details.</li>
     <li>If the database kernel version is earlier than 505.1.1, ensure that the replica consistency protocol of the instance is Quorum. Otherwise, log backup will fail.</li>
    </ul>
   </div>
   <div class="section">
    <h4 class="sectiontitle">Context</h4>
    <ul>
     <li>During manual backup, parameters (except <span class="uicontrol"><b><span><strong>Automatic Retry</strong></span></b></span>) defined in the SLA are applied to the manual backup job.</li>
     <li>Copies generated by manual backup are retained for the duration defined in the SLA.<p>If the protection policy selected for a manual backup job is not defined in the SLA, the generated backup copy is retained permanently. If full backup is not defined in the SLA but selected during manual backup, the copies generated by the manual full backup are retained permanently.</p></li>
     <li>If a replication or archive policy has been defined in the SLA, the system will perform replication or archiving once based on the SLA when you perform manual backup.</li>
    </ul>
   </div>
   <div class="section">
    <h4 class="sectiontitle">Precautions</h4>
    <p>For versions earlier than 1.5.0.SPC3, there is a hole area between the log backup and the next data backup. Data files generated in this area will not be backed up. For 1.5.0.SPC3 and later versions, there is no such a hole area. However, log backup cannot be performed for restored instances. For example, if instance A is restored to instance B, log backup cannot be performed for instance B.</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">Procedure</h4>
    <ol>
     <li><span>Choose <span class="uicontrol" id="TPOPS_GaussDB_00019__tpops_gaussdb_00015_en-us_topic_0000001839142377_uicontrol932712545121"><b><span id="TPOPS_GaussDB_00019__tpops_gaussdb_00015_en-us_topic_0000001839142377_text49391010171710"><strong>Protection</strong></span> &gt; Databases &gt; GaussDB</b></span>.</span><p></p>
      <div class="note" id="TPOPS_GaussDB_00019__tpops_gaussdb_00015_en-us_topic_0000001839142377_note62461853660">
       <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p id="TPOPS_GaussDB_00019__tpops_gaussdb_00015_en-us_topic_0000001839142377_p141794599612">For 1.5.0, choose <span class="uicontrol" id="TPOPS_GaussDB_00019__tpops_gaussdb_00015_en-us_topic_0000001839142377_uicontrol1294410117713"><b><span id="TPOPS_GaussDB_00019__tpops_gaussdb_00015_en-us_topic_0000001839142377_text1894431114714"><strong>Protection</strong></span> &gt; Cloud Platforms &gt; GaussDB</b></span>.</p>
       </div>
      </div> <p></p></li>
     <li><span>Click the <strong><span><strong>Instance</strong></span></strong> tab.</span></li>
     <li><span>In the row that contains the target instance, choose <span class="menucascade"><b><span class="uicontrol"><span><strong>More</strong></span></span></b> &gt; <b><span class="uicontrol"><span><strong>Protect</strong></span></span></b></span>.</span><p></p><p>You can also select multiple unprotected instances and click <span class="uicontrol"><b>Protect</b></span> for batch protection.</p> <p></p></li>
     <li><span>Select an SLA.</span><p></p><p>You can also click <span class="uicontrol"><b><span><strong>Create</strong></span></b></span> to create an SLA.</p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p id="TPOPS_GaussDB_00019__en-us_topic_0000001964713008_p125947145711"><span id="TPOPS_GaussDB_00019__en-us_topic_0000001964713008_ph1413818422327">If a WORM policy has been configured for the resources to be protected, select an SLA without a WORM policy to avoid WORM policy conflicts.</span></p>
       </div>
      </div> <p></p></li>
     <li><span>Click <span class="uicontrol" id="TPOPS_GaussDB_00019__en-us_topic_0000001964713008_uicontrol23691650677"><b>OK</b></span>.</span><p></p><p id="TPOPS_GaussDB_00019__en-us_topic_0000001964713008_en-us_topic_0000001656691397_p25041111535">If the current system time is later than the start time of the first backup specified in the SLA, you can select <strong id="TPOPS_GaussDB_00019__en-us_topic_0000001964713008_b9624185216713">Execute manual backup now</strong> in the dialog box that is displayed or choose to perform automatic backup periodically based on the backup policy set in the SLA.</p> <p></p></li>
     <li><strong>Optional: </strong><span>Perform manual backup.</span><p></p><p>If you want to execute a backup job immediately, perform manual backup through the following operations. Otherwise, skip this step.</p>
      <ol type="a">
       <li>In the row of the target instance, choose <span class="uicontrol"><b><span><strong>More</strong></span> &gt; <span><strong>Manual Backup</strong></span></b></span>.
        <div class="note">
         <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
         <div class="notebody">
          <p id="TPOPS_GaussDB_00019__en-us_topic_0000001792503838_p870125314544">You can select multiple resources to perform manual backup in batches. Select multiple resources and choose <span class="uicontrol" id="TPOPS_GaussDB_00019__en-us_topic_0000001792503838_uicontrol14182155715711"><b><span id="TPOPS_GaussDB_00019__en-us_topic_0000001792503838_text662114113158"><strong>More</strong></span> &gt; <span id="TPOPS_GaussDB_00019__en-us_topic_0000001792503838_text1068159191519"><strong>Manual Backup</strong></span></b></span> in the upper left corner of the page.</p>
         </div>
        </div></li>
       <li>Set the name of the copy generated through manual backup.<p>If this parameter is left empty, the system sets the name to <strong>backup_</strong><em>Timestamp</em> by default.</p></li>
       <li>Select a protection policy: <span><strong>Full backup</strong></span>, differential backup, or <span><strong>Log Backup</strong></span>.
        <div class="note">
         <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
         <div class="notebody">
          <p id="TPOPS_GaussDB_00019__en-us_topic_0000001964713008_p13522118194919"><span id="TPOPS_GaussDB_00019__en-us_topic_0000001964713008_ph19374310343">For 1.6.0 and later versions, if the selected protection policy is different from that configured in the associated SLA, the WORM configuration does not take effect.</span></p>
         </div>
        </div></li>
       <li>Click <span class="uicontrol"><b><span><strong>OK</strong></span></b></span>.</li>
      </ol> <p></p></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>Parent topic:</strong> <a href="TPOPS_GaussDB_00010.html">Backing Up GaussDB Instances</a>
    </div>
   </div>
  </div>
 </body>
</html>